package com.probox.common.entity.mapper.customer;

import com.probox.customer.api.domain.CustomerFundDetailVo;
import com.probox.common.entity.domain.customer.CustomerFundDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.probox.order.api.domain.OrderQuery;

import java.util.List;

/**
 * 客户资金明细Mapper接口
 *
 * @author zsy
 * @date 2021-06-18
 */
public interface CustomerFundDetailMapper extends BaseMapper<CustomerFundDetail> {

    /**
     * 统计订单用户冻结分润资金明细
     * @param bizNo
     * @return
     */
    List<CustomerFundDetailVo> getOrderFreezeProfit(String bizNo);

    /**
     * 查询指定订单号总额以及客户id
     * @param no
     * @return
     */
    public List<CustomerFundDetail> selectAmountAndCustomer(String no);

    /**
     * 查询指定订单ID总额以及客户id
     * @param no
     * @return
     */
    public List<CustomerFundDetail> selectAmountAndCustomerByOrderUid(Long orderUid);

    public List<CustomerFundDetail> getFundDetail(Long customerId);

    List<CustomerFundDetailVo> queryDeductList(CustomerFundDetail customerFundDetail);

    public Long countJiFen(OrderQuery query);
}
